<?php
// sunsblog.net navigation.inc (c)2004 Gjokica Zafirovski
// navigation 
if (!$l_id) {
$l_id='1';
}
echo '<tr>';
echo '<td colspan="2">';
echo '<table class="navigacija" cellpadding="0" cellspacing="0" width="100%">';
echo '<tr><td><table><tr>';
$sql = "select * from $tbl_lokacija order by id";
$res = mysql_query ($sql)
	or die("Try again sunser!");
while ($row = mysql_fetch_array ($res)) {
  if ($row['id'] == $l_id) {
    $class = 'selected';
  } else {
    $class = 'navigation-link';
  }
echo '<td valign="top" align="left" class="'.$class.'">';
echo '<a href="index.php?l_id='. $row['id'].'">';
echo $row['ime'];
echo '</a>';
echo '</td>';
}
echo '</tr></table></td></tr>';
echo '</table>';
echo '</td>';
echo '</tr>';
?>